<!DOCTYPE html>
<html lang="en">

<head>
    <meta charset="UTF-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>麻将</title>
    <style>
        * {
            margin: 0;
            padding: 0;
        }

        /* 四同 */
        .b1 {
            width: 300px;
            height: 350px;
            border: 4px solid #000;
            margin: 50px;
            display: flex;
            flex-wrap: wrap;
            justify-content: space-around;
            align-content: center;
        }

        .b1>div {
            width: 60px;
            height: 60px;
            background-color: yellowgreen;
            border: 20px double #000;
            margin: 10px;
            border-radius: 60px;
        }

        /* 七同 */
        .b2 {
            width: 300px;
            height: 350px;
            border: 4px solid #000;
            margin: 50px;
        }

        .c1 {
            display: flex;
            justify-content: center;
        }

        .c1>div {
            margin-top: 20px;
            width: 40px;
            height: 40px;
            border: 20px double #000;
            border-radius: 40px;
            background-color: yellowgreen;
        }

        .c1 .d2 {
            margin-top: 50px;
        }

        .c1 .d3 {
            margin-top: 80px;
        }

        .b2 .c2 {
            margin-bottom: 0;
            display: flex;
            justify-content: center;
        }

        .c2>div {
            margin-top: 20px;
            width: 40px;
            height: 40px;
            border: 20px double #000;
            border-radius: 40px;
        }

        .b2 .c3 {
            margin-top: 0;
            display: flex;
            justify-content: center;
        }

        .c3>div {
            width: 40px;
            height: 40px;
            border: 20px double #000;
            border-radius: 40px;
        }
    </style>
</head>

<body>
    <!-- 四同 -->
    <div class="b1">
        <div></div>
        <div></div>
        <div></div>
        <div></div>
    </div>
    <!-- 七同 -->
    <div class="b2">
        <!-- 上半部分 -->
        <div class="c1">
            <div class="d1"></div>
            <div class="d2"></div>
            <div class="d3"></div>
        </div>
        <!-- 下半部分 -->
        <div class="c2">
            <div class="d4">1</div>
            <div class="d5">2</div>
        </div>
        <div class="c3">
            <div class="d6">3</div>
            <div class="d7">4</div>
        </div>

    </div>
</body>

</html>